<?php
/********************************************************/
/* Module Name:  dashboard.php						    */
/* Description: display the main menu  */
/* Written by: Maria Cielo Carreno							*/
/********************************************************/

session_start();
//if(!session_is_registered(myusername)){
if(!isset($_SESSION['myusername'])){
header("location:main_login.php");
}
if(!isset($_SESSION['seedval'])){
header("location:main_login.php");
}
//print $_SESSION['memberType'];
$caseThisMonth = 0;

//page visit count
$pgcount = $_SESSION['pagecounter'];
$pgcount++;
$_SESSION['pagecounter'] = $pgcount;
//echo $pgcount;
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
  <link href="dashboard.css" rel="stylesheet" type="text/css" />
  <title>dashboard</title>
  <meta name="generator" content="Amaya, see http://www.w3.org/Amaya/" />
</head>

<body style="background-color:#c0c0c0">
<div id="fulladmin">
<div id="dashleft">
	<p><font size=12>Mediatrix Dashboard</font><br>

<?php echo $_SESSION['myusername'] ?>
	  [<a name="logout" id="logout" href="log_out.php?id=<?php echo $_SESSION['userid'];?>">logout</a>]</p>
<hr>
</div>
<div id="dashright">
<table border="0" >
   <tr>
      <td> <?php include('case_monitor_module.php'); ?> </td>
	  <td> <?php include('search_module.php'); ?>  </td>
	  <?php if (!strcmp($_SESSION['memberType'],"Admin") || !strcmp($_SESSION['memberType'],"PMC_Staff")) 
		   {
			   echo '<td>';
			   include('report-module.php');
			   echo '</td>';
			}
		 ?>
	</tr>
	   <?php 
	      if (!strcmp($_SESSION['memberType'],"Admin") || !strcmp($_SESSION['memberType'],"PMC_Staff")) 
		  {
				echo '<tr>';
				echo '<td>';
				include('addnewcase-module.php');
				echo '</td><td>';
				include('updatemenu-module.php');
				echo '</td><td>';
				include('tool-module.php');
				echo '</td></tr>';
			}
		   if (!strcmp($_SESSION['memberType'],"Admin")) 
		  {
			 echo '<tr>';
				echo '<td>';
				include('admin-module.php');	
				echo '</td><td>';
				include('judge-module.php');	
				echo '</td><td>';
				include('mediator-module.php');	
				echo '</td></tr>';
			}
		 ?>
</table>
</div>
<hr>
<p style="font-family: Arial,Helvetica,sans-serif;font-size: 8pt">(c)ielo 2012</p>
</div>
</body>
</html>